home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CDICTION / CPATTERN.H < prev    next >
Text File  |  1989-09-15  |  1KB  |  32 lines

  1. /*****************************************************************************
  2.     CPattern - subclass of CPane that fills a rectangle with a monochrome
  3.         or color pattern. The pattern is specified in the resID parameter
  4.         to IPattern. If the Mac has color QuickDraw and the preferColor
  5.         parameter is TRUE, then it looks for a 'ppat' resource of the
  6.         same ID and draws a color pattern instead.
  7.         
  8.     by Dan Podwall - you may do anything you please with this code except
  9.     charge for it, with the exception of normal network download charges.
  10.         
  11. *****************************************************************************/
  12.  
  13. #define _H_CPattern
  14.  
  15. #include "CPane.h"
  16. #include "Color.h"
  17. #include "defs.h"
  18.  
  19. struct CPattern : CPane
  20. {
  21.     Pattern            itsPattern;
  22.     PixPatHandle    itsPixPat;
  23.     
  24.     virtual void IPattern(CView *anEnclosure, CBureaucrat *aSupervisor,
  25.                     Int16 aWidth, Int16 aHeight, Int16 aHEncl, Int16 aVEncl,
  26.                     SizingOption aHSizing, SizingOption aVSizing,
  27.                     Int16 resID, Int16 preferColor);
  28.     
  29.     virtual void Draw( Rect *area);
  30.     
  31.     virtual void Dispose( void);
  32. };